//
//  NotificationsViewController.m
//  YiShangPin
//
//  Created by 衣尚品1 on 15/3/5.
//  Copyright (c) 2015年 yishangpin2. All rights reserved.
//

#import "NotificationsViewController.h"
#import "NotificationsCell.h"

@interface NotificationsViewController (){
    NSMutableArray *mutArray;


}

@end

@implementation NotificationsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    mutArray = [[NSMutableArray alloc]initWithObjects:@"good news Sam,this item you want is on sale for $9 today ",@"you want is on sale for $8 today...",@"good news Sam,this item you want is... ", @"you want is on sale for $19 today...",@"당신이 원하는는 8달러 오늘 90% 판매에...",@"you want is on sale for $8 today...",@"good news Sam,this item you want is on sale for $9 today ",@"20 당신이 원하는는 8달러 오늘 60% 판매에...",@"you want is on sale for $8 today...",@"you want is on sale for $36 today...",@"당신이 원하는는 8달러 오늘  판매에...",nil];
    
    // Do any additional setup after loading the view.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return mutArray.count;
}
//
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{


    NotificationsCell *cell = [tableView dequeueReusableCellWithIdentifier:@"notificationcell" ];
    
    cell.content.text = mutArray[indexPath.row];
    return cell;




}

#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {

}


@end
